public with sharing class MyLead {

    public String AccountAssignedDate { get; set; }

    public String AccountID { get; set; }

    public String FathersEmailID { get; set; }

    public String MothersEmailID { get; set; }

    public String FathersPhone { get; set; }

    public String MothersPhone { get; set; }

    public String FathersLastName { get; set; }

    public String MothersLastName { get; set; }

    public String FathersFirstName { get; set; }

    public String MothersFirstName { get; set; }

    public String postalcode { get; set; }

    public String state { get; set; }

    public String colony { get; set; }

    public String city { get; set; }

    public String street { get; set; }

    public String items { get; set; }

    public String rating1 { get; set; }

    public String awebsite { get; set; }

    public String aTitle { get; set; }

    public String aemail { get; set; }

    public String afax { get; set; }

    public String acompany { get; set; }

    public String amobile { get; set; }

    


    public String alastname { get; set; }

    public String aphone { get; set; }

    public String aname { get; set; }

    public PageReference cancel() {
       PageReference p=new PageReference('/00Q/o'); 
       return p;
    }


    public PageReference new1() {
        return new PageReference('/apex/test');
    }
     public string[] rating=new string[]{};
    public List<selectoption>getitems(){
    List<selectoption> options=new List<selectoption> ();
    options.add(new selectoption('caliente','caliente'));
options.add(new selectoption('cwarm','cwarm'));
options.add(new selectoption('frío','frío'));
return options;
}
public string[] getrating(){
return rating;
}
public void setrating(string[] rating){
this.rating=rating;
}


    public PageReference save() {
    Lead l=new Lead();
    l.city=city;
    
    l.street=street;
    l.website=awebsite;
    l.title=atitle;
    l.email=aemail;
    l.fax=afax;
    l.company=acompany;
    l.MobilePhone=amobile;
    l.lastname=alastname;
    l.firstname=aname;
    insert l;
        return new pagereference('/'+l.id);
    }

}